package com.ciaojian.core.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 
 * @since 2022-10-19
 */
@TableName("d_worker_cost_count")
public class WorkerCostCount extends Model<WorkerCostCount> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 日期
     */
    private String date;

    /**
     * 发型师id
     */
    @TableField("worker_id")
    private Integer workerId;

    /**
     * 发型师名称
     */
    @TableField("worker_name")
    private String workerName;

    /**
     * 金额
     */
    private BigDecimal money;

    /**
     * 类型 1警告信 2杂费
     */
    private String type;

    /**
     * 备注
     */
    private String msg;

    /**
     * 添加时间
     */
    @TableField("add_time")
    private Date addTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }
    public Integer getWorkerId() {
        return workerId;
    }

    public void setWorkerId(Integer workerId) {
        this.workerId = workerId;
    }
    public String getWorkerName() {
        return workerName;
    }

    public void setWorkerName(String workerName) {
        this.workerName = workerName;
    }
    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "DWorkerCostCount{" +
        "id=" + id +
        ", date=" + date +
        ", workerId=" + workerId +
        ", workerName=" + workerName +
        ", money=" + money +
        ", type=" + type +
        ", msg=" + msg +
        ", addTime=" + addTime +
        "}";
    }
}
